package pta;

import java.util.Scanner;

public class Test6 {

	public static void main(String[] args ) {
		Scanner s=new Scanner(System.in);
		while(s.hasNext()){
		int score=s.nextInt() ;
		switch (getGrade(score))
		{
		  case A:System.out.println("Excellent");printGradeInfo(getGrade(score));break;
		  case B:System.out.println("Good");printGradeInfo(getGrade(score));break;
		  case C:System.out.println("Average");printGradeInfo(getGrade(score));break;
		  case D:System.out.println("Fair");printGradeInfo(getGrade(score));break;
		  case E:System.out.println("Poor");printGradeInfo(getGrade(score));break;
		}
	}}
		
	public static void printGradeInfo(Grade grade){
		  System.out.println("class name=class Grade");
		  System.out.println("grade value="+grade);}
		
		
	public enum Grade{A,B,C,D,E}
	static Grade getGrade(int score)
	{
		if(score>=90&&score<=100)  return Grade.A ;
		if(score>=80&&score<=90)  return Grade.B ;
		if(score>=70&&score<=80)  return Grade.C ;
		if(score>=60&&score<=70)  return Grade.D ;
		else  return Grade.E ;
	
	}
	
}
